#include <rtthread.h>

#define DBG_TAG "main"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>

#include "led.h"
#include "sensor_common.h"
#include "mqtt_task.h"

int main(void)
{
    start_heartbeat_led_thread();   // 启动心跳灯线程
    print_temp_limit();             // 打印温度的上限值
    start_sersor_common_thread();   // 启动传感器读取线程
    start_mqtt_thread();            // 启动MQTT线程

    while (1)
    {
        rt_thread_mdelay(10000);
    }

    return RT_EOK;
}
